home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
CC_C
/
0566.ZIP
/
CSH.DOC
< prev
next >
Wrap
Text File
|
1987-01-27
|
3KB
|
115 lines
Author: Paul D. Fox
Date: January 1987
Copyright (C) Paul Fox 1987
Title: Documentation on csh.exe - C-shell interpreter.
This software is based on the Unix(TM) BSD C-shell command interpreter.
This offers a much better command environment than the standard Unix
Bourne shell, or MS-DOS.
This software is a shareware piece of code. The executable may
be freely distributed. If you like the product any donations are
gratefully accepted (10 pounds or more will do!). Please send to :
Paul Fox
7, Cromwell Court
Farrer Street
Kempston,
Bedford MK42 8JH
Donations accepted in dollars or UK pounds. Latter preferred.
The source to this software will also be made available. Please
contact me via bix-mail for offers.
Features include:
- command aliasing (very fast macros)
- history of commands.
- programmable batch files
- compatability with Unix C-shell,
except for limitations noted below.
- multi-line commands
- nested command scripts (subject to memory
limitations).
Features not yet implemented:
- if/endif
- switch/case
- while
- job control
- conditional parameter substituion ( ${?-xx} )
- background processes.
- AND and OR connectives (&& and ||)
Builtin commands supported:
repeat - repeat command N times. Syntax
repeat n command ..
echo - echo command line parameters including
wild card substitution.
cd - change working directory
chdir
pwd - print working directory
exit - exit shell
set - set local variable
history - display entire history or last N commands. Syntax
history [n]
unset - unset local variable
alias - alias command. Syntax:
alias name command_string_with_arguments,
eg
alias edit c:\bin\word @!*
unalias - delete alias definition
exec - execute a command with arguments via exec -
instead of spawn().
setenv - set environment variable
goto - used in scripts for unconditional goto
foreach - looping construct, eg
foreach i (\bin\*\*.com)
echo $i
end
end - terminate foreach command
@ - synonym for let
let - numeric assignment. Very simple expression
parser. Eg
let i = $j / 3
ver - Print current csh version information
path - print current path
source - read script file locally.
. - synonym for source.
Builtin in variables:
path Current search path for programs
cwd current working directory
prompt command prompt
drive disk drive
history number of commands to keep in history list
ignoreeof allow ^D to exit csh if not set
-------------
On start-up, csh reads the file \shell.ini (supplied) to
initialise your environment. This is similar to autoexec.bat
except it is read every time csh.exe is startup up.
-------------
Please note: the '@' character is the magic escape character.
On Unix the backslash is used, but we cant use that cos MS-DOS
wants to use these for file-names.
-------------
Any questions or misunderstandings, please bix-mail me. I may try
to write some more complete documentation as time goes by.
This project was started as a quick and dirty one-afternoon long
program, which I have extended over the last 6 months. I now cannot
survive without it.